package com.example.demo.service;

import com.example.demo.entity.User;

import java.util.List;

public interface UserService {
    int insert(User user);
    int updateById(User user);
    int updatePassword(Integer id, String password);
    int deleteById(Long id);
    int deleteBatchIds(List<Integer> ids);
    User selectByUsernameAndPassword(String username, String password);
    User selectByUsername(String username);
    List<User> selectPage(int pageNum, int pageSize, String search);
    List<User> selectPageWithMultiSearch(int pageNum, int pageSize, String search1, String search2, String search3, String search4);
    int selectCount(String search);
    int selectCountWithMultiSearch(String search1, String search2, String search3, String search4);
}